package cool.mtc.minghe.service.mapper.security;

import cool.mtc.security.data.model.UserDetails;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 明河
 */
public interface SecurityMapper {

    UserDetails getByIdentifierAndAuthType(@Param("identifier") String identifier, @Param("authType") String authType);

    UserDetails getByUserIdAndAuthType(@Param("userId") long userId, @Param("authType") String authType);

    Long getDefaultOrgIdByUserId(@Param("userId") long userId);
}
